﻿<common:UserControlBase x:Class="Sesa.Desktop.Common.RdlcPrintViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:rv="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
             xmlns:common="clr-namespace:Sesa.Desktop.Common"
                        DataContext="{Binding Source={StaticResource Locator}, Path=RdlcPrintViewerViewModel}">
  <WindowsFormsHost common:RdlcReportSourceBehavior.ReportSetting="{Binding Path=DataContext.ReportSetting, Mode=OneWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=FrameworkElement}}">
    <rv:ReportViewer x:Name="ReportViewer" PageCountMode="Actual"/>
  </WindowsFormsHost>
</common:UserControlBase>
